import request from '@/utils/request'

// 查询贴吧-板块分区列表
export function listPartition(query) {
  return request({
    url: '/pcj/partition/list',
    method: 'get',
    params: query
  })
}

// 查询贴吧-板块分区详细
export function getPartition(id) {
  return request({
    url: '/pcj/partition/' + id,
    method: 'get'
  })
}

// 新增贴吧-板块分区
export function addPartition(data) {
  return request({
    url: '/pcj/partition',
    method: 'post',
    data: data
  })
}

// 修改贴吧-板块分区
export function updatePartition(data) {
  return request({
    url: '/pcj/partition',
    method: 'put',
    data: data
  })
}

// 删除贴吧-板块分区
export function delPartition(id) {
  return request({
    url: '/pcj/partition/' + id,
    method: 'delete'
  })
}
